<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class News extends Model
{
    public static $NEWS_TYPE_CANCEL = 1;
    public static $NEWS_TYPE_PENDING = 2;
    public static $NEWS_TYPE_PASSED = 3;
    public static $NEWS_TYPE_NOT_PASS = 4;

    public static $NEWS_TYPE_ZCDT = 1;
    public static $NEWS_TYPE_ZYDJ = 2;
    public static $NEWS_TYPE_BDDT = 3;

    public static $NEWS_TYPE = [
        ['key'=>1,'text'=>'政策动态'],
        ['key'=>2,'text'=>'志愿党建'],
        ['key'=>3,'text'=>'本地动态']
    ];

    public static $NEWS_STATUS_MAP = [
        ['key' => 1, 'text' => '已取消'],
        ['key' => 2, 'text' => '待审核'],
        ['key' => 3, 'text' => '已通过'],
        ['key' => 4, 'text' => '未通过']
    ];

    protected $fillable = ['title','picture','type','description','news_status','province_id','city_id'];

}
